package com.xm.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**后台账号信息表实体类
 * @author 康文程
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdministratorInformation {
    /**
     * 编号
     */
    private Integer informationId;
    /**
     * 名称
     */
    private String name;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 邮箱
     */
    private String mailbox;
    /**
     * 联系人手机号
     */
    private String sparePhone;
    /**
     * 家庭地址
     */
    private String homeAddress;
    /**
     * 联系电话
     */
    private String contact;
    /**
     * 联系人
     */
    private String signature;
    /**
     * 联系人电话
     */
    private String contactPhone;
    /**
     * 性别
     */
    private Integer sex;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 管理员账号Id
     */
    private String administratorId;
    /**
     * 出生日期
     */
    private Date dateBirth;
    /**
     * 职位Id
     */
    private Integer departmentId;
    /**
     * 入职日期
     */
    private Date dateEntry;
    /**
     *账号管理员表
     */
    private Administrator administrator;
    /**
     *职称表
     */
    private Departments departments;
    /**
     * 购物车
     */
    private ShoppingCart shoppingCart;

    public AdministratorInformation(String name, String phone, String mailbox,Integer informationId, String sparePhone, String homeAddress, String contact, String signature, String contactPhone, Integer sex, String avatar, String administratorId, Date dateBirth, Integer departmentId) {
        this.name = name;
        this.phone = phone;
        this.mailbox = mailbox;
        this.informationId=informationId;
        this.sparePhone = sparePhone;
        this.homeAddress = homeAddress;
        this.contact = contact;
        this.signature = signature;
        this.contactPhone = contactPhone;
        this.sex = sex;
        this.avatar = avatar;
        this.administratorId = administratorId;
        this.dateBirth = dateBirth;
        this.departmentId = departmentId;
    }
}
